﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using SinaApi;
using LitJson;
using YGD.Generic;

namespace FollowManager.Console
{
    
    class Program
    {
        static void Main(string[] args)
        {
            
            var service = new SinaBlogApiService();
            string data = service.GetFollowings();
            File.WriteAllText("dd.txt",data);
            data.OL();
            var dataList = JsonMapper.ToObject<List<JsonData>>(data);
            dataList.Count.OL();
            
            foreach (var jsonData in dataList)
            {
                jsonData.OL();
            }
            System.Console.ReadKey();

        }
       
    }

}
